<template>
  <div class="top-bar">
    <div class="slot"><slot></slot></div>
    <a href="#" class="logon">
      <div class="img">
        <img src="" alt="" />
      </div>
      <span>逆行-踏步前端之巅</span>
    </a>
  </div>
</template>

<script>
export default {
  props: {
    data: [],
  },
  mounted() {},
};
</script>

<style scoped>
.top-bar {
  padding-left: 40px;
  padding-right: 40px;
  width: calc(100% - 20vw);
  height: 40px;
  position: fixed;
  left: 20vw;
  top: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 3px 3px 3px #eee;
  display: flex;
  justify-content: space-between;
  z-index: 9;
}
.slot-num {
  display: flex;
  align-items: flex-end;
}
.slot {
  font-size: 16px;
  color: skyblue;
  display: flex;
  align-items: center;
}

.logon {
  display: flex;
  align-items: center;
  font-size: 14px;
}
.img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
}
img {
  width: 100%;
}
</style>